package com.canis.stockmanager.repository;

import com.canis.stockmanager.domai.Stock;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface StockRepository   extends JpaRepository<Stock, Long> {
   Page<Stock> findByStockStateAndBoxMacContainingAndBoxNumberContaining(int stockState,String boxMac,String boxNumber, Pageable pageable);
   Page<Stock> findByBoxMacContainingAndBoxNumberContaining(String boxMac,String boxNumber, Pageable pageable);
   Stock findById(long id);
   Stock findByBoxMac(String boxMac);
}